package com.supermarket.business.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.supermarket.business.domain.SupermarketWarehouseManager;
import com.supermarket.common.annotation.AutoFill;
import com.supermarket.common.enums.OperationType;

import java.util.List;

/**
 * 仓库管理员Mapper接口
 * 
 * @author ruoyi
 * @date 2025-07-21
 */
public interface SupermarketWarehouseManagerMapper extends BaseMapper<SupermarketWarehouseManager>
{
    /**
     * 查询仓库管理员
     * 
     * @param managerId 仓库管理员主键
     * @return 仓库管理员
     */
    public SupermarketWarehouseManager selectSysWarehouseManagerByManagerId(Long managerId);

    /**
     * 查询仓库管理员列表
     * 
     * @param supermarketWarehouseManager 仓库管理员
     * @return 仓库管理员集合
     */
    public List<SupermarketWarehouseManager> selectSysWarehouseManagerList(SupermarketWarehouseManager supermarketWarehouseManager);

    /**
     * 新增仓库管理员
     * 
     * @param supermarketWarehouseManager 仓库管理员
     * @return 结果
     */
    @AutoFill(value = OperationType.INSERT)
    public int insertSysWarehouseManager(SupermarketWarehouseManager supermarketWarehouseManager);

    /**
     * 修改仓库管理员
     * 
     * @param supermarketWarehouseManager 仓库管理员
     * @return 结果
     */
    @AutoFill(value = OperationType.UPDATE)
    public int updateSysWarehouseManager(SupermarketWarehouseManager supermarketWarehouseManager);

    /**
     * 删除仓库管理员
     * 
     * @param managerId 仓库管理员主键
     * @return 结果
     */
    public int deleteSysWarehouseManagerByManagerId(Long managerId);

    /**
     * 批量删除仓库管理员
     * 
     * @param managerIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteSysWarehouseManagerByManagerIds(Long[] managerIds);
}
